package entity;

import javax.persistence.Entity;
import java.util.*;
import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;


/**
 * @Written by T12 (IS3102 AY2011/12)
 */
@Entity
public class StakeholderPerformance extends Stakeholder {
    @OneToMany(cascade = CascadeType.PERSIST, fetch=FetchType.EAGER)
    private List<PerformanceItem> events = new ArrayList<PerformanceItem>();

    public List<PerformanceItem> getEvents() {
        return events;
    }

    public void setEvents(List<PerformanceItem> events) {
        this.events = events;
    }
}
